<script type="text/html" template>
  <link rel="stylesheet" href="{{ layui.setter.base }}style/login.css?v={{ layui.admin.v }}-1" media="all">
</script>


<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login"
  style="display: none;background-image: url(?act=getBackground);">
  <div class="layadmin-user-login-main" bgimg>
    <div class="layadmin-user-login-box layadmin-user-login-header">
      <h2>忘记密码</h2>
      <p>一站式账户聚合登录系统</p>
    </div>
    <form class="layadmin-user-login-box layadmin-user-login-body layui-form" lay-filter="loss_form">

      <script type="text/html" template>
        {{# if(layui.router().search.type === 'resetpass'){ }}
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input type="text" name="password" autocomplete="off" id="LAY-user-login-password" lay-verify="pass|required"
            placeholder="新密码" class="layui-input">
        </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-repass"></label>
          <input type="text" name="repass" autocomplete="off" id="LAY-user-login-repass" lay-verify="pass|required"
            placeholder="确认密码" class="layui-input">
        </div>
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-default layui-btn-fluid" lay-submit
            lay-filter="LAY-user-forget-resetpass">重置新密码</button>
        </div>
        {{# } else { }}
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-email" for="LAY-user-forgrt-mail"></label>
          <input type="text" name="mail" id="LAY-user-forgrt-mail" lay-verify="required|email" placeholder="邮箱"
            class="layui-input">
        </div>
        <div class="layui-form-item">
          <div class="layui-row">
            <div class="layui-col-xs7">
              <label class="layadmin-user-login-icon layui-icon layui-icon-vercode"
                for="LAY-user-login-vercode"></label>
              <input type="number" name="vercode" id="LAY-user-login-vercode" lay-verify="required|regcaptcha"
                autocomplete="off" placeholder="验证码" class="layui-input">
            </div>
            <div class="layui-col-xs5">
              <div style="margin-left: 10px;">
                <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid"
                  id="LAY-user-forgrt-getsmscode">获取验证码</button>
              </div>
            </div>
          </div>
        </div>
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-default layui-btn-fluid" lay-submit
            lay-filter="LAY-user-forget-submit">找回密码</button>
        </div>
        <div class="layui-trans layui-form-item layadmin-user-login-other">
          <a lay-href="/user/login" class="layadmin-user-jump-change button-click">想起来了</a>
        </div>
        {{# } }}
      </script>

    </form>
  </div>

  <div class="layui-trans layadmin-user-login-footer">
    <script type="text/html" template>
      <span><a style="color: #ffffff;"
          href="../">{{ layui.data(layui.setter.tableName).web_name || '聚合快捷登录中转API' }}</a></span>
      <span><a style="color: #ffffff;" href="{{ layui.data(layui.setter.tableName).author }}"
          target="_blank">联系客服</a></span>
    </script>
  </div>

  <script>
    layui.use('forget', layui.factory('forget'));
  </script>